//
//  UIView+Animation.h
//  DSJY
//
//  Created by 冯华强 on 16/10/21.
//  Copyright © 2016年 dsjy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Animation)

//layerView移动到toView的上方位置,默认动画时长1.0
- (void)positionLayerView:(UIView *)layerView toView:(UIView *)toView delegateVC:(UIViewController *)delegateVC;

//layerView移动到toView的上方位置
- (void)positionLayerView:(UIView *)layerView toView:(UIView *)toView delegateVC:(UIViewController *)delegateVC duration:(CFTimeInterval)duration;

//当前有值的View要做专场动画，［self.view contentTransitionWithContentView:contetnView]，
//contetnView会加入专场动画，默认动画时长0.5
- (void)contentTransitionWithContentView:(UIView *)contetnView delegateVC:(UIViewController *)delegateVC;

//内容专场动画
- (void)contentTransitionWithContentView:(UIView *)contetnView delegateVC:(UIViewController *)delegateVC duration:(CFTimeInterval)duration;

/**
 *  键盘关闭
 */
- (void)keyboardWillHide:(NSNotification *)noti coverView:(UIView *)coverView;

/**
 *  获取焦点后移动view距离
 *  noti:监听的键盘noti
 *  eventViewTop:点击的控件相对于屏幕的高度
 *  isHide:当前操作是隐藏还是显示
 */
- (void)keyboardWillTransform:(NSNotification *)noti eventViewTop:(CGFloat)eventViewTop isHide:(BOOL)isHide;

/**
 *  获取焦点后移动view距离
 *  noti:监听的键盘noti
 *  eventViewTop:点击的控件相对于屏幕的高度
 *  keyToolH:如果有键盘顶部工具条，那么传入该高度
 *  isHide:当前操作是隐藏还是显示
 */
- (void)keyboardWillTransform:(NSNotification *)noti eventViewTop:(CGFloat)eventViewTop keyToolH:(CGFloat)keyToolH isHide:(BOOL)isHide;

@end
